package com.niren.commonmodule.basic;

/**
 * \* author: wky
 * \* Date: 2024/11/26
 * \* Time: 11:42
 * \* Project: microservice
 * \* Package: com.niren.commonmodule.basic
 * \* Version: 1.0.0
 * \* To change this template use File | Settings | File Templates.
 * \* Description:请输入源文件描述
 * \
 */
public enum EUseSystem {

    /**
     * PC端
     */
    PC(0),
    /**
     * 微信
     */
    WECHAT(1);

    private final int value;
    private EUseSystem(Integer value){
        this.value = value;
    }

    public static EUseSystem valueOf(int value) {
        switch (value) {
            case 1: return WECHAT;
            case 0:
            default: return PC;
        }
    }

    public static int EUseSystem2Int(EUseSystem useSystem) {
        switch (useSystem) {
            case WECHAT: return 1;
            case PC:
            default: return 0;
        }
    }

}
